import http from '@/services/request'

// 营销数据总览
export const getDataView = (data) => {
  return http({
    url: 'api/marketing/alliance/data/overview',
    method: 'post',
    data,
  })
}

// 营销数据列表
export const getDataList = (data) => {
  return http({
    url: 'api/marketing/alliance/data/list',
    method: 'post',
    data,
  })
}

// 佣金数据总览
export const getMoneyView = (data) => {
  return http({
    url: 'api/marketing/alliance/commission/overview',
    method: 'post',
    data,
  })
}

// 佣金数据列表
export const getMoneyList = (data) => {
  return http({
    url: 'api/marketing/alliance/commission/dailyData',
    method: 'post',
    data,
  })
}

// 订单数据总览
export const getOrderView = (data) => {
  return http({
    url: 'api/marketing/alliance/order/overview',
    method: 'post',
    data,
  })
}

// 订单数据列表
export const getOrderList = (data) => {
  return http({
    url: 'api/marketing/alliance/order/list',
    method: 'post',
    data,
  })
}

// 获取并生成营销链接
export const getLink = () => {
  return http({
    url: 'api/marketing/alliance/link',
    method: 'post',
  })
}
